package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 群成员表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("group_members")
public class GroupMembers implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 成员关系ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 群组ID
     */
    @TableField("group_id")
    private Integer groupId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 成员角色
     */
    @TableField("role")
    private String role;

    /**
     * 加入时间
     */
    @TableField("joined_at")
    private LocalDateTime joinedAt;
}
